package Java9_13;

import java.io.File;

public class Work5 {
    public static void main(String[] args) {
        File file=new File("D:\\rubbish\\Work5\\aaa.txt");
        File file1=new File("D:\\rubbish\\work5.5\\aaa.txt");
        boolean b=file.renameTo(file1);
        System.out.println(b);
//        boolean b=file1.renameTo(file);
//        System.out.println(b);
    }
}
